package day4;

import java.util.Scanner;

public class Test6 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int[] oldIntegral = new int[5];
        int[] newIntegral = new int[oldIntegral.length];
        for (int i = 0; i < oldIntegral.length; i++) {
            System.out.print("第" + (i + 1) + "位会员积分:");
            oldIntegral[i] = input.nextInt();
            newIntegral[i] = oldIntegral[i] + 500;
        }
        System.out.println("序号\t\t\t历史积分\t\t\t新年积分");
        for (int i = 0; i < oldIntegral.length; i++) {
            System.out.println((i + 1) + "\t\t\t" + oldIntegral[i] + "\t\t\t" + newIntegral[i]);
        }
    }
}
